<ion-view>
  <ion-header-bar class="bar bar-header header">
    <button on-touch="goback()" class="button return-btn">返回</button>
    <h1 class="title" ng-click="backToTop()">消息盒子</h1>
    <button class="button hd-red-btn" on-touch="clickEditBtn()" ng-bind="rightBtnText">编辑</button>
  </ion-header-bar>
  <ion-content class="gray-bg" has-bouncing="true">
    <div class="list">
      <a class="item item-icon-right msg-box-item" ng-if="!showEdit" ng-href="{{item.mn_jump}}" ng-repeat="item in msgBoxList"
         ng-click="readMsgBox(item.mn_id,$index)">
        <i class="no_read" ng-if="item.mn_state==0"></i>
          <i ng-if="item.mn_jump" class="icon msg-box-icon"></i>
        {{item.mn_time|date:'MM月dd日'}}&nbsp;&nbsp;{{item.mn_content}}
      </a>
      <a class="item item-checkbox item-icon-right msg-box-item"
         ng-if="showEdit" ng-repeat="item in msgBoxList"
         on-touch="selectMsgBox($index)">
        <i class="no_read" ng-if="item.mn_state==0"></i>
        <i ng-if="item.mn_jump" class="icon msg-box-icon"></i>
        {{item.mn_time|date:'MM月dd日'}}&nbsp;&nbsp;{{item.mn_content}}
        <label class="checkbox">
          <em class="product-item-checkbox" ng-class="{'active':item.selected}">
            <input type="checkbox"/>
          </em>
        </label>
      </a>
    </div>
    </ion-content>
  <ion-footer-bar class="bar bar-footer footer-txt footer-white" ng-if="showEdit">
    <label class="mt5" style="width:60px">
      <em class="footer-checkbox" ng-class="{'active':allSelected}" on-touch="selectAllMsgBox()">
        <input type="checkbox"/>
      </em>
      全选
    </label>
    <span class="mlr10">已选择<em class="product-fix-num" ng-bind="selectMsgBoxCount" style="color:#970b34;">0</em>条消息</span>
    <span class="absolute-right" style="width:125px">
        <button class="button button-small claret-red-btn" type="button" ng-click="readMsgBoxList()">已读</button>
        <button class="button button-small claret-red-btn" type="button" ng-click="delMsgBoxList()">删除</button>
      </span>
    <!--<button class="button button-small pull-right claret-red-btn" type="button" ng-click="delMsgBoxList()">删除</button>-->
  </ion-footer-bar>
    </ion-view>
